<?php
namespace Admin\Controller;
use Admin\Controller\ChearkLoginController;
use Think\Controller;
class RecordController extends ChearkLoginController {
    public function index(){
        $id = $_REQUEST['id'];
        $where['idit'] = $id;
        $res = M('shop')->where($where)->delete();
        if(!empty($res)){
            $this->redirect('Shop/index', array('cate_id' => 2), 0);
        }else{
            $this->error('删除失败！','Shop/index',0);
        }
    }
}